using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Pg.BioMedics.RatObserver
{
    class SupportedVideoType
    {
        private static IList<String> extensions;

      static SupportedVideoType() {
          extensions = new List<String>();
          extensions.Add("avi");
          extensions.Add("mov");
    }



        public static Boolean isSupported(String fileName) {
            FileInfo fi = new FileInfo(fileName);
            return extensions.Contains(fi.Extension.ToLower());
        }

        public static String getFilter()
        {
            String res = "";
            foreach (String ext in extensions)
            {
                if (res.Length > 0)
                    res += ";";
                res += ("*." + ext);
            }
            return res;
        }
    }
}
